a = [1, 2, 3, 4]
i = 0

while i < len(a):
    print(a[i])
    i += 1
else:
    print('I am else')
# 1
# 2
# 3
# 4
# I am else